docs(auth): document organization-scoped ticket sessions - #523
Closed
swolfand wants to merge 1 commit into
Closed
Conversation
Contributor
CI pausedCI does not run automatically on pull request updates. Before merging, manual CI must be run and pass for the latest commit. When this PR is ready for CI, the PR author or a repository maintainer can comment:
Or use the quick action below:
|
Collaborator
Author
|
Closing after re-evaluating the integration boundary. The backend end-to-end coverage in clerk/clerk_go#20464 verifies Organization activation, and the native usage is documented in clerk/clerk#2977. No native runtime change is required. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
signInWithTicket(_:)uses the ticket strategySession.lastActiveOrganizationIdfrom a completed sign-in responseContext
When the Backend API creates a sign-in token with
org_id, consuming that token activates the Organization for the new session. Clerk iOS already synchronizes the Client envelope returned by the Frontend API; this change documents that behavior and adds focused regression coverage.Related work:
Testing
make format-checkswift test --filter AuthTestsswift test --filter ClerkClientSyncResponseMiddlewareTestsLinear: MOBILE-591
Note
Document organization-scoped ticket sessions in
Auth.signInWithTicketAuth.signInWithTicketto clarify that organization-scoped tickets activate that organization, accessible viaClerk/sessionandSession/lastActiveOrganizationId.SignInresponse (via/v1/client/sign_ins) instead of a session touch response.AuthTeststo verify the sign-in strategy is set to.ticketwhensignInWithTicketis called.🖇️ Linked Issues
Partially addresses MOBILE-591, which tracks adding
org_idsupport to the sign-in token API for hybrid iOS/Android flows.Macroscope summarized 57249de.